import axios from '../axios'

/*
 * 课程管理模块
 */

export const getCourseCateList = (data) => {
  return axios({
    url: '/course/getCourseCateList',
    method: 'post',
    data: data
  })
}

export const getCourseCateTree = (data) => {
  return axios({
    url: '/course/getCourseCateTree',
    method: 'post',
    data: data
  })
}

export const getCourseList = (data) => {
  return axios({
    url: '/course/getCourseList',
    method: 'post',
    data: data
  })
}

export const getCourse = (data) => {
  return axios({
    url: '/course/getCourse',
    method: 'post',
    data: data
  })
}

export const getAttachment = (data) => {
  return axios({
    url: '/course/getAttachment',
    method: 'post',
    data
  })
}
